import request from '@/utils/request'

export function listProjectData(params) {
  return request({
    url: '/supervise/proInfoApi/selectProInfoListStatistics',
    method: 'post',
    params
  })
}

// 添加巡检单位
export function addInspectoUnit(data) {
  return request({
    url: '/sys/proInspectoTransferApi/addSave',
    method: 'post',
    data: data
  })
}

export function listUser(params) {
  return request({
    url: '/sys/user/listAll',
    method: 'post',
    params
  })
}

// 项目数据---工作记录
export function getRecordList(params) {
  return request({
    url: '/supervise/sitePhotoApi/selectSitePhotoByTimePc',
    method: 'post',
    params
  })
}

// 勘察单位分配
export function listSurveyUnit(query) {
  return request({
    url: '/sys/enterprise/dailyListNoPermission',
    method: 'post',
    params: query
  })
}

// 项目数据导出华宁
export function exportData(query) {
  return request({
    url: '/supervise/explorationApi/exportExploration',
    method: 'post',
    responseType: 'blob',
    params: query
  })
}
// 项目数据导出理正
export function exportDataLi(query) {
  return request({
    url: '/supervise/explorationApi/exportExplorationByLiZheng',
    method: 'post',
    responseType: 'blob',
    params: query
  })
}
